<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            font: 12px "simhei", Arial, Helvetica, sans-serif;
            color: #666;
        }
       body>div {
           width: 198px;
           height: 233px;
           background-color: #E8E8E8;
           text-align: center;
           overflow: hidden;
       }
        .p1{
            color: #000;
            margin: 0px 0px 6px 0px;
        }
        .p2{
            margin-top: 6px;
            font-weight: bold;
            color: #0AA1ED;
        }
        a{
            width: 100px;
            height: 24px;
            color: white;
            line-height: 24px;
            text-align: center;
            text-decoration: none;
            background-color: deepskyblue;
            font-size: 12px;
            /*display: block;!*块写以后独占一行，不接受父元素居中属性*!*/

            /*!* 法一：通过外边距让块级元素居中*!*/
            /*margin: 0px auto;*/
            /*行内元素或行块级元素 上级元素添加了text-align:center
                    元素会居中，块级元素需要单独通过外边距控制居中*/
            display: inline-block;/*结合了inline与block的一些特点，不独占一行的块级元素*/
            border-radius: 2px;
        }
        #div1 img{
            width:198px;
            height: 136px;
            transition: all 0.6s;
        }
       #div1 img:hover{
           transform: scale(0,1);
       }
    </style>
</head>
<body>
<div id="div1">
    <img  src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img3.png" alt="">
    <p class="p1">戴尔(DELL)XPS13-9360-R1609 13.3英寸微边框笔记本电脑</p>
    <p class="p2">￥4600.00</p>
    <a href="">查看详情</a>
</div>
</body>
</html>